package io.renren.modules.stock.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.stock.dao.StatisticsDao;
import io.renren.modules.stock.entity.StatisticsEntity;
import io.renren.modules.stock.service.StatisticsService;


@Service("statisticsService")
public class StatisticsServiceImpl extends ServiceImpl<StatisticsDao, StatisticsEntity> implements StatisticsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StatisticsEntity> page = this.page(
                new Query<StatisticsEntity>().getPage(params),
                new QueryWrapper<StatisticsEntity>()
        );

        return new PageUtils(page);
    }

}